/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cyss.greenball.service;

import com.cyss.greenball.util.MemoryDataBase;
import com.cyss.greenball.util.SystemUtil;
import com.lianzt.commondata.AbstractCommonData;
import com.lianzt.commondata.DataConvertFactory;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author cyss
 */
public class ShowGreenBallMapService extends BaseService{

    @Override
    public AbstractCommonData execute(AbstractCommonData acd) {
        AbstractCommonData backAcd = SystemUtil.getBacdCommonData(SystemUtil.ServiceCodeAndDesc.get("success"));
        List<AbstractCommonData> mapList = new ArrayList<AbstractCommonData>();
        for(Integer num : MemoryDataBase.GreenBallTable.keySet()){
            mapList.add(MemoryDataBase.GreenBallTable.get(num));
        }
        backAcd.putArrayValue("mapList", mapList); 
        return backAcd;
    }
    
}
